<?php
$titleFlag = __d('tag', 'Sky the Mobile shop');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
        <!--shop title: page title-->
        <title>
            <?php echo $titleFlag ?>:
            <?php echo $this->fetch('title'); ?>
        </title>
        <?php
        echo $this->Html->meta('icon');
        echo $this->Html->css('style');

		echo $this->fetch('meta');
		echo $this->fetch('css');
    	echo $this->fetch('script');
	?>
    <?php echo $this->Html->css(array('bootstrap/bootstrap.min.css', 'bootstrap/jquery-ui.css')); ?>

    <script src="bootstrap/bootstrap.min.js"></script>
    <?php echo $this->Html->script(array('bootstrap/bootstrap.min.js')); ?>

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="//netdna.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>


</head>
<body>
<div id="header1">
    <div id="wrapper">
        <div class="col-md-2">
            <p>
                <a href="index.html" title="Mobile shop SKY">
                    <?php echo $this->Html->image('../images/logo1.png', array('alt' => 'Sky the Mobile shop','url'=>array('controller'=>'IndexPage','action'=>'index_view'), 'border' => '0', 'data-src' => 'holder.js/100%x100')); ?>
                </a>
            </p>
        </div>
        <div class="col-md-3">
            <div class="input-group">
                <input type="text" class="form-control" placeholder="Search for...">
                        <span class="input-group-btn">
                        <button class="btn btn-primary" type="button submit">Go!</button>
                        </span>
            </div><!-- /input-group -->
        </div><!-- /.col-lg-6 -->
        <div class="col-md-1">
        </div><!-- /.col-lg-6 -->
        <ul class="menu menu-primary">
            <li><!-- current-menu-item current_page_item -->
                <?php echo $this->Html->link("Trang chủ", array('controller' => 'indexpage','action' => 'index_view')) ?>
            <li class="drop">
                <?php echo $this->Html->link("Sản phẩm",array('controller' => 'indexpage', 'action' => 'view_products')) ?>

            </li>
            <li class="drop">
                <?php echo $this->Html->link("Giỏ hàng",array('controller' => 'carts', 'action' => 'view')) ?>

            </li>
            <li class="drop">
                <?php echo $this->Html->link("Khuyến mãi",array('controller' => 'indexpage','action' => 'view_products')) ?>
            </li>
            <div class="btn-group">
                <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    Tài khoản <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                    <li>
                     <?php echo $this->Html->link("Login", array('controller' => 'accounts','action' => 'login')) ?>
                    </li>
                </ul>
            </div>
            </li>

        </ul>

    </div>
</div>

</div>
	<div id="container">

		<div id="content">

			<?php echo $this->Session->flash(); ?>

			<?php echo $this->fetch('content'); ?>
		</div>
        <div id="footer" class="footer">
            <div class="wrap">
                    <p class="copyright">@2014 Web Development Project</p>
                    <p class="creds">Mobile Shop</p><div style="display:none">
                    </div>
            </div>
        </div>
	</div>
</body>
</html>
